<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}


<div class="container">
    
    <div class="main">
   		
        
        <div class="mod">
        	<div class="head">fdaf</div>
            <div class="body">
            	<table width="200" border="0" class="table table-bordered">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>

            </div>
        </div>
        
        
        
       <div class="mod">
       		<div class="head">发现企业</div>
            <div class="body"> 
            	
                <div class="well">
                    {php $query = $db->query("select userid from table_member_company")}
                    <h3>已有{php echo $db->num_rows($query)}家企业进驻</h3>
                	<a href="{url("?module=$module&action=$action")}" class="button"><i class="icon-refresh"></i>换一组</a>
                </div>
                
                <div class="row">
            	{get sql="select userid,logo,companyname,introduce from table_member_company order by rand() DESC" rows="20"}
                	<div class="aside">
                    	
                        <div class="span1">
                            <a href="{url("?module=yellowpage&userid=$r[userid]")}"><img src="{php echo $r[logo] ? $r[logo] : 'misc/nopic.gif'}"/></a>
                        </div>
                        <div class="span2">
                            <a href="{url("?module=yellowpage&userid=$r[userid]")}">{$r[companyname]}</a><br/>
                            {php echo rand(50,300)}人喜欢<br/>
                            {str_cut(strip_tags($r[introduce]),60)}
                        </div>
                        <br/><br/>
                    </div>
                        {if $n%2==0}<div class="clear"></div>{/if}
                {/get}
                </div>
                
         	</div>
       </div>
      
            
    </div>
    
    <div class="aside">
 
        
        <div class="mod">
            <div class="head">最新进驻</div>
            <ul class="body users">
                {get sql="select userid,logo,companyname,introduce from table_member_company order by userid DESC" rows="16"}
                	<li {if $n%4==1} class="clear" {/if}>
                     <a href="{url("?module=yellowpage&userid=$r[userid]")}" title="{$r[companyname]}">
                     <img src="{php echo $r[logo] ? thumb($r[logo],72,'') : thumb('misc/nopic.gif',72,'')}" 
                     alt="{$r[companyname]}"  target="_blank" width="40" height="40"/></a>
                     <br/><a href="{url("?module=yellowpage&userid=$r[userid]")}">{str_cut($r[companyname],15,'')}</a><br/>&nbsp;({rand(100,500)})
                    </li>
                {/get}
            </ul>
        </div> 
        
        
        
        <div class="mod">
            <div class="head">品牌企业</div>
            <ul class="body users">
                {get sql="select userid,logo,companyname,introduce from table_member_company where sitedomain <> '' and logo <> '' order by rand()" rows="16"}
                	<li {if $n%4==1} class="clear" {/if}>
                     <a href="{url("?module=yellowpage&userid=$r[userid]")}" title="{$r[companyname]}">
                     <img src="{php echo $r[logo] ? thumb($r[logo],72,'') : thumb('misc/nopic.gif',72,'')}" 
                     alt="{$r[companyname]}"  target="_blank" width="40" height="40"/></a>
                     <br/><a href="{url("?module=yellowpage&userid=$r[userid]")}">{str_cut($r[companyname],15,'')}</a><br/>&nbsp;({rand(100,500)})
                    </li>
                {/get}
            </ul>
        </div> 
        
        
        
    </div>
</div>


<script language="javascript" type="text/javascript">

$().ready(function() {
	  $('form').checkForm(1);
	});
</script>
{template 'footer.html'}
